package ua.org.extjsbuilder.parser.runtime.instructions;

import java.io.IOException;
import java.io.Writer;

import ua.org.extjsbuilder.parser.IInstruction;
import ua.org.extjsbuilder.parser.IScope;
import ua.org.extjsbuilder.parser.JSObject;

public class Breaker implements IInstruction {
	public static final String BREAK = "break";
	public static final String CONTINUE = "continue";
	public static final String RETURN = "return";
	
	private String type;

	public Breaker(String type, String param) {
		this.type = type;
	}
	
	public Breaker(String type, IInstruction expression) {
		this.type = type;
	}
	
	public void compile(Writer out, boolean optimize) throws IOException {
		// TODO Auto-generated method stub
		
	}

	public JSObject execute(IScope scope, JSObject[] args) {
		// TODO Auto-generated method stub
		return null;
	}

	public String getName() {
		return type;
	}
}
